package com.sky.job;

import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
public class SampleXxlJob {
    @XxlJob("demoJobHandler")
    public void demoJobHandler(){
        System.out.println("执行任务时间："+new Date());
    }
}
